package mediadisplay.timeline 
{
	import flash.display.Sprite;
	import flash.events.Event;
	/**
	 * ...
	 * @author Anders Figenschow
	 */
	public class Dragger extends Sprite
	{
		private var _direction:String;
		
		public static const LEFT:String = "left";
		public static const RIGHT:String = "right";
		
		public function Dragger(direction:String) 
		{
			_direction = direction;
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			
			graphics.beginFill(0xff0000, .4);
			graphics.drawRect(0, 0, 10, 20);
			graphics.endFill();
			if (_direction == LEFT) {
				// TODO gfx in dragger
				// left arrow
			} else {
				// right arrow
			}
			
			buttonMode = true;
			y = 1;
		}
		
	}

}